Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45388 > unrolled thread
| Started by | Eric Miller <miller.eric.t@gmail.com> |
|---|---|
| First post | 2013-05-15 18:47 -0700 |
| Last post | 2013-05-15 21:28 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
python sockets question Eric Miller <miller.eric.t@gmail.com> - 2013-05-15 18:47 -0700
Re: python sockets question Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-15 21:28 -0500
| From | Eric Miller <miller.eric.t@gmail.com> |
|---|---|
| Date | 2013-05-15 18:47 -0700 |
| Subject | python sockets question |
| Message-ID | <6aa0447a-e6eb-47b7-9444-71922dad82e7@googlegroups.com> |
Can python sockets be used to capture IP traffic when the traffic is originating from a non-python source? Using a Lantronix UDS-1100 serial to IP converter. The goal is to write a small proof of concept piece in Python to capture serial data output by this device over IP. I've done a couple test projects using sockets in python, but they were all done between python processes (python > python): listen() on one end, and connect(), sendall() etc on the other. I think I can use sockets for this project, but before I invest a bunch of time into it, wanted to make sure it is a viable solution. Can python sockets be used to capture IP traffic when the traffic is originating from a non-python source? I have full control over the IP and port that the device sends the serial data to, but there will be no python connect() initiated by the client. I can pre-pend then serial data with some connect() string if needed. If sockets won't work, please recommend another solution...guessing it will be REST or similar.
[toc] | [next] | [standalone]
| From | Andrew Berg <bahamutzero8825@gmail.com> |
|---|---|
| Date | 2013-05-15 21:28 -0500 |
| Message-ID | <mailman.1730.1368671311.3114.python-list@python.org> |
| In reply to | #45388 |
On 2013.05.15 20:47, Eric Miller wrote: > Can python sockets be used to capture IP traffic when the traffic is originating from a non-python source? Python just exposes the underlying OS socket interface. There is nothing special about sockets in Python. The whole point is to connect heterogeneous systems. I can use Python on Windows to create a client that will connect to a service written in C running on Solaris or to something written in Java running on Linux. -- CPython 3.3.1 | Windows NT 6.2.9200 / FreeBSD 9.1
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web