send

Send a def with sockets in python

Send a def with sockets in python Question: I have a problem with sockets, I wanna sent the especifications about my pc in a chat created with sockets, but when I use the sentence send() with the function the compiler throw this error… How can I send that information? Thanks. This is the server code. …

Total answers: 1

Trying to send string variable via Python socket

Trying to send string variable via Python socket Question: I’m in a CTF competition and I’m stuck on a challenge where I have to retrieve a string from a socket, reverse it and get it back. The string changes too fast to do it manually. I’m able to get the string and reverse it but …

Total answers: 2

Entering text to span Selenium/Python

Entering text to span Selenium/Python Question: I try to enter text to span in place of “SAMPLE TEXT”. I’m using Selenium/Python but I can’t do it using send_keys method. Do you have any other ideas how can I do that? I attached screenshots with HTML and screenshot from app I tried to use that code, …

Total answers: 1

What is faster: multiple `send`s or using buffering?

What is faster: multiple `send`s or using buffering? Question: I’m playing around with sockets in C/Python and I wonder what is the most efficient way to send headers from a Python dictionary to the client socket. My ideas: use a send call for every header. Pros: No memory allocation needed. Cons: many send calls — …

Total answers: 4