Commit Graph

60 Commits

Author SHA1 Message Date
coolreader18
f7246a3f51 Fix socket.rs 2019-08-09 12:40:03 -05:00
lynskylate
fccb0d2ade Disable socket import on wasm 2019-08-08 00:16:27 +08:00
lynskylate
c9c580d2fe Add inet_ntoa and windows gethostname 2019-08-07 01:28:17 +08:00
lynskylate
4e969e9db7 Remove unsafe code 2019-08-05 07:10:28 +08:00
lynskylate
14c6b4028e Specific platform 2019-08-05 00:57:04 +08:00
lynskylate
5f4c8c65fa Impl gethostname sethostname inet_aton 2019-08-05 00:16:05 +08:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Maxim Kurnikov
bc35a64e54 fix most of clippy warnings 2019-06-01 03:19:22 +03:00
Yonatan Goldschmidt
84684e5f7d Don't use RefCell in tuple object 2019-05-19 23:57:32 +03:00
Aviv Palivoda
cb32201904 Add Address 2019-04-22 00:18:19 +03:00
Aviv Palivoda
b61cd6f011 Simplify return values 2019-04-21 17:44:41 +03:00
Aviv Palivoda
1f73393255 Move more socket methods to new arg style 2019-04-21 17:35:20 +03:00
Aviv Palivoda
9954361df9 Move more socket methods to new arg style 2019-04-21 17:28:41 +03:00
Aviv Palivoda
206ba4dbfb Change socket to new args style 2019-04-21 17:20:33 +03:00
Aviv Palivoda
2bc72dae9f Move fileno logic to Connection impl 2019-04-19 16:10:55 +03:00
Aviv Palivoda
e7b059ed9c Add socket.fileno for windows 2019-04-19 16:00:00 +03:00
Aviv Palivoda
cf0a920743 Add socket.fileno for unix 2019-04-19 15:50:06 +03:00
Darren Kaste
a8e064b1c0 Import TypeProtocol before use in type_check! 2019-04-14 17:19:44 -04:00
Adam Kelly
9ed051e3b7 Module Initialisation takes VirtualMachine rather than PyContext. 2019-04-05 09:50:31 +01:00
Joey
3177824474 Fix test- 2019-03-23 12:57:17 -07:00
Joey
e4e7da3d54 Some socket cleanups 2019-03-23 12:21:55 -07:00
ben
ad584df120 Allow context.set_attr to accept PyRef values in addition to PyObjectRef 2019-03-23 19:32:31 +13:00
ben
c1d5ce715f Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
2019-03-23 19:32:31 +13:00
coolreader18
a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -05:00
Joey
7bfd2e6e84 Move function items out of pyobject module 2019-03-15 21:27:11 -07:00
Joey
fa9e48a5b3 Take &mut VirtualMachine insteadof &PyContext 2019-03-14 21:43:19 -07:00
Joey
737ec12fa5 Rename PyValue::{required_type => class} 2019-03-14 20:08:41 -07:00
Windel Bouwman
b8aa38db1a Merge pull request #653 from RustPython/joey/pyobject-2.0-prep
Remove PyObjectPayload enum
2019-03-11 17:33:51 +01:00
Joey Hain
2449c12bf9 Merge remote-tracking branch 'origin/master' into make_module_not_mk_module
Conflicts:
      vm/src/stdlib/weakref.rs
2019-03-10 20:43:11 -07:00
Joey Hain
053ceb1a30 Move payload boxing into PyObject::new 2019-03-10 20:19:28 -07:00
Joey Hain
e2e13af7ea Remove PyObjectPayload 2019-03-10 13:45:38 -07:00
Joey Hain
6024e3ea0c Fix irrefutable pattern errors 2019-03-10 12:43:25 -07:00
Adam Kelly
0ff5155af9 Rename mk_module to make_module. 2019-03-10 17:10:51 +00:00
Aviv Palivoda
76c43457b5 Add more OSError exceptions to socket 2019-03-08 17:05:05 +02:00
Aviv Palivoda
de0e76baf8 socket connect and bind throws OSError with indicative error message 2019-03-08 16:43:11 +02:00
Aviv Palivoda
3fae8ccfbc Handle unknown socket kind 2019-03-08 16:19:26 +02:00
Aviv Palivoda
40c10ab70a Handle unknown address family 2019-03-08 16:16:59 +02:00
Aviv Palivoda
933c8dc792 Use py_module macro 2019-03-04 18:30:37 +02:00
Aviv Palivoda
d2061004a3 Use py_class macro 2019-03-04 18:27:33 +02:00
Aviv Palivoda
283b331323 Use vm.ctx.new_tuple 2019-03-03 18:22:20 +02:00
Aviv Palivoda
f09f75ac8d Do implicit bind in socket.sendto 2019-03-03 18:15:14 +02:00
Aviv Palivoda
9b5ba068af Return addr in accept 2019-03-03 18:15:14 +02:00
Aviv Palivoda
86b60faa61 Add socket.{sendto, recvfrom} 2019-03-03 18:15:14 +02:00
Aviv Palivoda
e5d1d11c3e Add UDP to socket 2019-03-03 18:15:14 +02:00
Aviv Palivoda
af2f790d0d Use PyObjectPayload::AnyRustValue for socket 2019-03-02 12:26:23 +02:00
Aviv Palivoda
aed657173f Simplify socket_close 2019-03-02 12:26:23 +02:00
Aviv Palivoda
e4007f530e Add get_socket function 2019-03-02 12:25:59 +02:00
coolreader18
f364ea5943 Fix a bunch of clippy lints 2019-03-01 18:41:45 -06:00
Aviv Palivoda
8087ccf274 Add socket.getsockname 2019-02-27 20:47:53 +02:00
Aviv Palivoda
dc0bd73d12 Fix compiler warnings 2019-02-27 20:23:02 +02:00