Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing socket server
#1
Hello :)
I'm new to python and i wanted to try building a server.
I managed to write files and pass data. but on one computer.
I want to do something like sql. (not saving important or private details.)
my question is, if i want to make it a class. like FirebaseDatabase.
how do i make it global? so I can import the class from different computers ?
and if i do that, do i really need sockets?
cause if i do something from the client side like:
my_server.writeFileToDb():
and passing it a dictionary or something. will it save it on the pc that have the full server class ?
and if it will, why i need sockets?

or the best way to do it is to connect to the server with binding the client socket to the server socket?
and getting the data and passing data with statements ? like sql works?
(again, not trying to build any thing sophisticated just a simple server to write false data, and basically learning)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 4,276 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Socket server problem H84Gabor 0 1,207 Jun-21-2022, 12:14 AM
Last Post: H84Gabor
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 2,934 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  Server and Network (socket) [WinError 10053] Timxxx 1 4,536 Aug-23-2019, 10:03 AM
Last Post: iMuny
  Server and Network (socket) [WinError 10053] SheeppOSU 2 22,174 Apr-13-2019, 09:23 PM
Last Post: SheeppOSU
  Async socket server and ports Pengwyn 1 10,712 Feb-28-2019, 12:13 AM
Last Post: DeaD_EyE
  Multi connection socket server help! MuntyScruntfundle 0 2,685 Feb-19-2019, 12:03 PM
Last Post: MuntyScruntfundle
  Send data BMP180 between client and server trought module socket smalhao 0 2,805 Jul-30-2018, 12:56 PM
Last Post: smalhao
  socket server with SSL accepting unencrypted data kopite 0 3,240 Apr-20-2017, 08:31 AM
Last Post: kopite
  socket server help abrew132 1 4,670 Apr-20-2017, 03:02 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020