Skip to content Skip to sidebar Skip to footer
Showing posts with the label Sockets

Kill Socket.accept() Call On Closed Unix Socket

Socket.close() does not stop any blocking socket.accept() calls that are already running on that so… Read more Kill Socket.accept() Call On Closed Unix Socket

Python Socket: Can Only Concatenate Str Not Bytes To Str. How To Encode So It Won't Give Me This Error?

Here is my entire code: It uses user input for the host and the port. Server side code: import sock… Read more Python Socket: Can Only Concatenate Str Not Bytes To Str. How To Encode So It Won't Give Me This Error?

Sending File Through Sockets Python

I'm trying to send files through sockets but my server is hanging when the file is sent complet… Read more Sending File Through Sockets Python

Is Resume() Function Available In Python 2.7?

Is there any resume() function in python. I need to apply it on my program. need proper explanation… Read more Is Resume() Function Available In Python 2.7?

Persistent Dns Caching Not Utilized By Python's Socket.getaddrinfo/mercurial

I used to have very slow DNS lookups on my Ubuntu machine when connecting through one Modem/ISP. I … Read more Persistent Dns Caching Not Utilized By Python's Socket.getaddrinfo/mercurial

Sending A Udp Packet With Source Port, But Without Binding

I would like to send a UDP packet in Python and specify the source port but WITHOUT binding. An equ… Read more Sending A Udp Packet With Source Port, But Without Binding

Python Error With Socket. Ntohl()

I'm having an issue with the socket.ntohl() function, on some hosts. It is repeatable on all s… Read more Python Error With Socket. Ntohl()

Python Sockets For A N-players Game

I'm a python(3) begginer and I want to do a n-players game. This players will connect to the se… Read more Python Sockets For A N-players Game

Python Blocking Sockets, Send Returns Immediately

I am writing a multithreaded socket application in Python using the socket module. the server liste… Read more Python Blocking Sockets, Send Returns Immediately

Script Breaks Out Of Function After Sending A Few Packets

I am writing a python program that sends packets for a specified amount of time. The sending script… Read more Script Breaks Out Of Function After Sending A Few Packets

Chat Client/server Problems On Python

Me and a friend of mine are doing a chat room with python, basically he's doing the server part… Read more Chat Client/server Problems On Python

Python Socket Recv From Java Client

I have a problem with a simple python tcp server (I'm using SocketServer class) that have to re… Read more Python Socket Recv From Java Client

Python Icmp Socket Server (not Tcp\udp)

I'm trying to write a socket server in Python that can receive ICMP packets. Here's my code… Read more Python Icmp Socket Server (not Tcp\udp)

Create An Echo Server

I am new to python and trying to code. I want to create simple echo server ie whatever I input to t… Read more Create An Echo Server

Send Data From Python Program To Java Program

I have a Python program status.py that prints some status updates (strings) to the console. However… Read more Send Data From Python Program To Java Program

(python) Socket.gaierror On Every Addres...except Http://www.reddit.com?

I'm just playing around and I'm trying to grab information from websites. Unfortunately, wi… Read more (python) Socket.gaierror On Every Addres...except Http://www.reddit.com?

Gethostbyname_ex(hostname) Extremely Slow

At startup, IPython (qtconsole) calls socket.gethostbyname_ex(socket.gethostname())[2] to find a li… Read more Gethostbyname_ex(hostname) Extremely Slow

Python/socket: How To Send A File To Another Computer Which Is On A Different Network?

The codes below work if the computers are on the same network. However if these computers are on di… Read more Python/socket: How To Send A File To Another Computer Which Is On A Different Network?

Client/server Role Reversal With Simplexmlrpcserver In Python

I'm working on a project to expose a set of methods from various client machines to a server fo… Read more Client/server Role Reversal With Simplexmlrpcserver In Python

Python Socket Gethostbyname() Returns Only One Ip Address

Friends, I'm doing some simple experiments using python socket, where I've a HOSTNAME which… Read more Python Socket Gethostbyname() Returns Only One Ip Address