Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45388

python sockets question

X-Received by 10.224.42.141 with SMTP id s13mr24755325qae.3.1368668826432; Wed, 15 May 2013 18:47:06 -0700 (PDT)
X-Received by 10.49.110.103 with SMTP id hz7mr328698qeb.5.1368668826410; Wed, 15 May 2013 18:47:06 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!m7no8288128qam.0!news-out.google.com!y6ni43806qax.0!nntp.google.com!m7no8288124qam.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Wed, 15 May 2013 18:47:06 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=24.160.200.232; posting-account=bnr1pAoAAACCInytEKZrI1-VccCAIA5C
NNTP-Posting-Host 24.160.200.232
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <6aa0447a-e6eb-47b7-9444-71922dad82e7@googlegroups.com> (permalink)
Subject python sockets question
From Eric Miller <miller.eric.t@gmail.com>
Injection-Date Thu, 16 May 2013 01:47:06 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.python:45388

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

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

csiph-web