use
> client:
> server_address='192.168.2.2'
server:
> server_name='127.0.0.1'
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 2015-01-03, Dan Stromberg wrote:
> On Sat, Jan 3, 2015 at 3:43 AM, pramod gowda wrote:
...
> data=client_socket.recv(1024)
> print(data)
> client_socket.close()
>
>
> But note that if you send 10 bytes into a socket, it could be received
> as two chunks of 5, or other strangeness. So you
On Sat, Jan 3, 2015 at 3:43 AM, pramod gowda wrote:
> Hi i am learning socket programming,
This "works" on Linux Mint 17.1.
Server:
#!/usr/local/cpython-3.4/bin/python
import socket
server_socket = socket.socket()
#server_name = '192.168.2.2'
server_socket.setsockopt(socket.SOL_SOCKET, socket.
On Saturday, January 3, 2015 9:27:20 PM UTC+5:30, Steven D'Aprano wrote:
> pramod gowda wrote:
>
> > HI, i m doing n personal laptop.
> > so i think i ve rights to open a listening socket,could u pls tell me hw
> > can i check it?
>
> Is your keyboard broken? There are a lot of missing characters
pramod gowda wrote:
> HI, i m doing n personal laptop.
> so i think i ve rights to open a listening socket,could u pls tell me hw
> can i check it?
Is your keyboard broken? There are a lot of missing characters in your
sentences. You're going to have a lot of trouble programming with a broken
key
On Saturday, January 3, 2015 8:39:26 PM UTC+5:30, mm0fmf wrote:
> On 03/01/2015 11:43, pramod gowda wrote:
> > server_socket=socket.socket()
> > server_name='192.168.2.2'
> > server_port= 80
> > server_socket.bind((server_name,server_port))
> > server_socket.listen(1)
>
> I don't do much Python on
On 03/01/2015 11:43, pramod gowda wrote:
server_socket=socket.socket()
server_name='192.168.2.2'
server_port= 80
server_socket.bind((server_name,server_port))
server_socket.listen(1)
I don't do much Python on Windows but do you have the necessary access
rights to open a listening socket on por
On Saturday, January 3, 2015 6:08:28 PM UTC+5:30, Chris Angelico wrote:
> On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda wrote:
> > I am using python 3.4.2
> > I don get any exceptions,
> > but wn i run the code,i don see any connections, IP address is given as my
> > system IP.
>
> What does the
On Sat, Jan 3, 2015 at 11:25 PM, pramod gowda wrote:
> I am using python 3.4.2
> I don get any exceptions,
> but wn i run the code,i don see any connections, IP address is given as my
> system IP.
What does the client say?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, January 3, 2015 5:26:27 PM UTC+5:30, Chris Angelico wrote:
> On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda wrote:
> > I am not getting the output, i am using windows 7 OS..
> > please check and give me the solution.
>
> Windows 7 - that's part of the story. What version of Python ar
On Sat, Jan 3, 2015 at 10:43 PM, pramod gowda wrote:
> I am not getting the output, i am using windows 7 OS..
> please check and give me the solution.
Windows 7 - that's part of the story. What version of Python are you
using? Is 192.168.2.2 the correct IP address? What happens when you
run thes
On 6 May 2013 17:05, Chris Angelico wrote:
> I've never used Twisted, so I can't say how good it is. All I know is
> that what I learned about socket programming in C on OS/2 is still
> valid on Windows and on Linux, and in every language I've ever used
> (bar JavaScript and ActionScript, which a
On Tue, May 7, 2013 at 1:54 AM, Pedro wrote:
> Thanks for the reply. I'm sending short strings as commands to my server
> machine so the socket module seems to be doing the trick reliably. I'll try
> to add Twisted to my arsenal though.
> Cheers
I've never used Twisted, so I can't say how good
On Saturday, May 4, 2013 5:37:42 AM UTC-4, Irmen de Jong wrote:
> On 4-5-2013 4:13, Pedro wrote: > SERVER: > > import socket # Import socket
> module > > s = socket.socket() # Create a socket object > host =
> socket.gethostname() # Get local machine name > port = 12345 # Reserve a port
> for yo
On Sat, May 4, 2013 at 7:37 PM, Irmen de Jong wrote:
> Bottom line:
> Socket programming on this level is hugely complicated. It doesn't seem too
> bad if you
> start of with these simple example programs, but that's false hope. If at all
> possible,
> avoid direct socket programming, and use a
On 4-5-2013 4:13, Pedro wrote:
> SERVER:
>
> import socket # Import socket module
>
> s = socket.socket() # Create a socket object
> host = socket.gethostname() # Get local machine name
> port = 12345# Reserve a port for your service.
> s.bind((host, port))
On Friday, May 3, 2013 11:56:01 PM UTC-4, Chris Angelico wrote:
> On Sat, May 4, 2013 at 1:37 PM, Pedro wrote:
>
> > On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
>
> >> The accept() call should block. It's not going to spin or anything. If
>
> >>
>
> >> you need to monitor m
On Sat, May 4, 2013 at 1:37 PM, Pedro wrote:
> On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
>> The accept() call should block. It's not going to spin or anything. If
>>
>> you need to monitor multiple sockets, have a look at select().
>
> Thanks Chris, can you elaborate on the a
On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
> On Sat, May 4, 2013 at 12:13 PM, Pedro wrote:
>
> > First - this code constantly loops around an open socket. Is there a way to
> > use something like an interrupt so I don't have to loop constantly to
> > monitor the socket?
>
On Sat, May 4, 2013 at 12:13 PM, Pedro wrote:
> First - this code constantly loops around an open socket. Is there a way to
> use something like an interrupt so I don't have to loop constantly to monitor
> the socket?
The accept() call should block. It's not going to spin or anything. If
you ne
"Zubin Mithra" wrote in message
news:8e7c74320912300315r625f4c89kb8002e4b8c384...@mail.gmail.com...
The code snippet i have pasted at,
http://paste.pocoo.org/show/160555/
produces a traceback which also has been pasted at the above link. The
snippet attempts at socket programming using OOPs
On Mon, Nov 17, 2008 at 10:42 AM, Abah Joseph <[EMAIL PROTECTED]> wrote:
> I am planning to develop School Database Management System that will run on
> Windows, Linux and Mac. The application will be Server/Client and GUI based.
Have you considered basing this off existing software for schools,
l
On 23 okt 2008, at 05:49, ryan wrote:
On Oct 22, 6:18 pm, Python <[EMAIL PROTECTED]> wrote:
On 22 okt 2008, at 13:50, ryan fox wrote:
i have implemented a small client server model to do file transfer
over a LAN network.
It work with some machines on the network and on others it doesnt.
ryan wrote:
i have implemented a small client server model to do file transfer
over a LAN network.
It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.
The message is as follows:
Do you
On Thu, Oct 23, 2008 at 1:49 PM, ryan <[EMAIL PROTECTED]> wrote:
> any ideas?
As mentioned before, try:
* Turning _off_ _all_ _firewalls_.
cheers
James
--
--
-- "Problems are solved by method"
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 22, 6:18 pm, Python <[EMAIL PROTECTED]> wrote:
> On 22 okt 2008, at 13:50, ryan fox wrote:
>
>
>
> > i have implemented a small client server model to do file transfer
> > over a LAN network.
>
> > It work with some machines on the network and on others it doesnt.
> > when i run the server.p
On 22 okt 2008, at 13:50, ryan fox wrote:
i have implemented a small client server model to do file transfer
over a LAN network.
It work with some machines on the network and on others it doesnt.
when i run the server.py file in some machine then it pops up a
windows security alert.
The messa
On Wed, Oct 22, 2008 at 9:50 PM, ryan fox <[EMAIL PROTECTED]> wrote:
> I guess its a firewall problem... How do i go abt it?
> any help?
See as it's most likely a firewall issue and a firewall
that I'm not familiar with, I can't help here :/ Sorry.
cheers
James
--
--
-- "Problems are solved
On Jun 14, 5:38 pm, srinivasan srinivas <[EMAIL PROTECTED]>
wrote:
> Hi,
> Is there any way(method) to find whether the socket got closed or not??
> Thanks,
> Srini
>
> Best Jokes, Best Friends, Best Food and more. Go
> tohttp://in.promos.yahoo.com/groups/bestofyahoo/
That's slightly diffi
On Jul 12, 2:35 am, [EMAIL PROTECTED] wrote:
> On Jul 11, 7:32 pm, [EMAIL PROTECTED] wrote:
>
> > I have just started working in network programming using python.
> > written code for socket connection between client and server. Client
> > sent data to server for server processing (also server echo
On Jul 11, 7:32 pm, [EMAIL PROTECTED] wrote:
> I have just started working in network programming using python.
> written code for socket connection between client and server. Client
> sent data to server for server processing (also server echoing back
> rcvd data to client). When there is ("if no
On 2006-06-20, Kiran <[EMAIL PROTECTED]> wrote:
> is it possible to make python do some other processing while
> it is waiting for a socket to timeout?
Yes.
You can either use threads or select.
Or you can use one of the async server frameworks like twisted.
--
Grant Edwards
Kiran wrote:
> Hello All,
> My question is, is it possible to make python do some other
> processing while it is waiting for a socket to timeout?
sure, you have to use threads and/or use asynchronous socket
programming. Google is your friend.
--Irmen
--
http://mail.python.org/mailman/listinfo
On 2006-02-11, D <[EMAIL PROTECTED]> wrote:
> I've used os.popen() before, but if I execute it on a remote
> system how could I get the output back to the requesting
> machine?
Write it to the socket?
--
Grant Edwards grante Yow! Where does it go when
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I am relatively new to Python, and wanted to see if this is even
> possible, and if so how to go about implementing it. What I'm looking
> to do is create a client/server application that does the following:
>
> 1) System2 listens on port > 1023
I've used os.popen() before, but if I execute it on a remote system how
could I get the output back to the requesting machine?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks! Now, I'm a bit confused as to exactly how it works - will it
display the output of what it executes on the target system? I would
like to create a window in Tktinker to where a user can select options
(such as run scan on remote system) - it would then run the
command-line based scan and
On 2006-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am relatively new to Python, and wanted to see if this is
> even possible, and if so how to go about implementing it.
> What I'm looking to do is create a client/server application
> that does the following:
>
> 1) System2 listens on
[EMAIL PROTECTED] wrote:
> An example of what I am looking to use this for is for remote virus
> scanning. So System2 listens, System1 connects and sends it the
Just found this through OSNews:
http://rpyc.sourceforge.net/
It actually seems to be a perfect fit for your job.
Lorenzo
--
http://
I mis-phrased:
> The code passes
> 'self' to __init__, but not to any of the others methods.
Of course I meant that the formal parameter for self is missing.
> > class mysocket:
>
>> '''classe solamente dimostrativa
>> - codificata per chiarezza, non per efficenza'''
>>
Marco Meoni wrote:
> Hi. I read the Gordon McMillan's "Socket Programming Howto".
> I tried to use the example in this howto but this doesn't work.
You are right, that obviously won't work. The code passes
'self' to __init__, but not to any of the others methods.
I'm cc'ing this post to [EMAIL PR
Steve Holden ha scritto:
> [...]
> I can see you have changed the example a little (because I know that
> Gordon's original didn't have comments in Italian).
The example cames from italian translation of the howto:
http://python.it/doc/howto/Socket/sockets-it/sockets-it.html
Regards Manlio P
Marco Meoni wrote:
> Hi. I read the Gordon McMillan's "Socket Programming Howto".
> I tried to use the example in this howto but this doesn't work.
> The code is class mysocket:
> '''classe solamente dimostrativa
> - codificata per chiarezza, non per efficenza'''
> def __i
On Thu, 22 Dec 2005 22:12:09 +,
David <[EMAIL PROTECTED]> wrote:
> a) Big problem, I can't see how to receive from more than one socket
> at once. I need to do this so that data from the TCP connection can
> be sent out on the UDP one and vice versa. Do I need a thread for
> each, or is ther
David <[EMAIL PROTECTED]> writes:
[...]
> a) Big problem, I can't see how to receive from more than one socket at
> once. I need to do this so that data from the TCP connection can be sent
> out on the UDP one and vice versa. Do I need a thread for each, or is
> there some other way I can listen
* gry@ll.mit.edu [2005/07/20 15:26]:
> What I have done in similar circumstances is put in a random sleep
> between connections to fool the server's load manager. Something like:
>
> .import time
> .min_pause,max_pause = (5.0, 10.0) #seconds
> .while True:
> . time.sleep(random.uniform(min_p
* gry@ll.mit.edu [2005/07/20 15:26]:
> What I have done in similar circumstances is put in a random sleep
> between connections to fool the server's load manager. Something like:
>
> .import time
> .min_pause,max_pause = (5.0, 10.0) #seconds
> .while True:
> . time.sleep(random.uniform(min_pa
What I have done in similar circumstances is put in a random sleep
between connections to fool the server's load manager. Something like:
.import time
.min_pause,max_pause = (5.0, 10.0) #seconds
.while True:
. time.sleep(random.uniform(min_pause, max_pause))
. do_connection_and_query_stuff()
"Helge Aksdal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>* Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]:
>
>> Ask your server administrator if you are bumping up against a hidden
>> connection limit. Or if a query can ask about multiple accounts.
>
> how can i use a conn
* Helge Aksdal <[EMAIL PROTECTED]> [2005-07-19 11:23]:
> if i then change to a console window, and telnet to this server it
> sends me to another one. That's probably why my program dies, how
> can i get my code to handle this?
>
> Trying xxx.xxx.xxx.xxx
> telnet: connect to address xxx.xxx.xxx.xx
On 2005-07-19, Helge Aksdal <[EMAIL PROTECTED]> wrote:
> if i then change to a console window, and telnet to this
> server it sends me to another one.
What do you mean "sends me to another one"?
The telnet protocol doesn't have any sort of "redirect"
capability.
> That's probably why my program
* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 23:09]:
> I don't think you can use a limit to your advantage. If you are
> bumping against some limit and you can't query for multiple accounts
> then there doesn't seem to be much you can really do.
The problem would be solved, if i just could get
On 7/19/05, Helge Aksdal <[EMAIL PROTECTED]> wrote:
> * Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]:
>
> > Ask your server administrator if you are bumping up against a hidden
> > connection limit. Or if a query can ask about multiple accounts.
>
> how can i use a connection limit to my a
* Terry Reedy <[EMAIL PROTECTED]> [2005/07/19 22:57]:
> Ask your server administrator if you are bumping up against a hidden
> connection limit. Or if a query can ask about multiple accounts.
how can i use a connection limit to my advantage?
i know for certain that a query can't ask about multi
"Helge Aksdal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 21:26]:
>
>> It sounds really strange to connect to a server "several hundred"
>> times. If I had to guess, the server monitored all of the connects
>> coming from your IP ad
* Jaime Wyant <[EMAIL PROTECTED]> [2005/07/19 21:26]:
> It sounds really strange to connect to a server "several hundred"
> times. If I had to guess, the server monitored all of the connects
> coming from your IP address and eventually stopped accepting ANY
> connections.
That's really what it e
It sounds really strange to connect to a server "several hundred"
times. If I had to guess, the server monitored all of the connects
coming from your IP address and eventually stopped accepting ANY
connections.
jw
On 7/19/05, Helge Aksdal <[EMAIL PROTECTED]> wrote:
> i've recently made my very f
rbt wrote:
> I don't fully understand sockets, I just know enough to be dangerous.
> The below is not detected by nmap, but is affected by iptables or ipsec.
> Can anyone explain why that is?
>
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.bind((ip_param, port_param))
>
millerch wrote:
> Are you explicitly referencing the port for nmap, or is it a general
> port scan?
>
> The version of nmap I run only checks common ports unless a port range
> is specified.
I did not know that. It works as expected now. Thanks!
--
http://mail.python.org/mailman/listinfo/pytho
Are you explicitly referencing the port for nmap, or is it a general
port scan?
The version of nmap I run only checks common ports unless a port range
is specified.
rbt wrote:
> I don't fully understand sockets, I just know enough to be dangerous.
> The below is not detected by nmap, but is af
60 matches
Mail list logo