-
1.Create a socket
2.Determine the local computer endpoint (IP and port number).
Binding endpoints. Receive data.
Send data. Turn off the socket
-
For instant chat software, you mainly need to learn the knowledge of socket communication and understand how ports communicate with each other to deliver messages.
Here are some examples developed by others, you can refer to the following.
Hope mine is helpful to you.
-
The underlying communication requires knowledge of socket communication to understand how esframework communicates.
-
Database connection middleware technology, socket communication, I/O streaming, etc.
-
Live chat software, the main thing you need to learn is the knowledge between socket communication, and it is better to learn the knowledge of databases.
-
You need to use the connection technology between the database and C.
-
I'm doing this based on a database...
-
Open the port is not a mapping computer.,Chat is nothing more than operating the database.,There are two ways:
Mapping a database to an external network is fast, but vulnerable to attack.
It is the most reasonable way to enable the webservice and server in a remote place, and the server and application client in the local area, and request the webservice to operate the database. Visaul Studio uses Remoting to achieve this, and the so-called socket is full of vulnerabilities for remote effects.
-
First, add a trigger to the data table to be inserted, if there is data insertion, insert this information into an intermediate table, indicating that there is an update; Secondly, a timer is defined on the C side to check whether the intermediate table is updated in a loop, and if so, it prompts to clear the intermediate table after completion.
-
Create a trigger in the database first, and then call the trigger with C.
-
For example, you can set id=0 to be a public chat, then id=someone's ID is a private chat, and id = the ID of several people is **.
-
c Syntax GridView Case:
Additional databases.
Modify the connection. Digest it yourself. The most basic connection operation and display data.
Hope it helps!
-
All you need to do is bind a data source.
-
If you are monitoring the operation of the data of **, you can use triggers, and if you are monitoring the entire database, you can write a service to monitor whether the database is running properly and the operation of the entire database.
-
Get a trigger in the database.
You can make an information query system, if you haven't done it before, it is recommended to use ASP to write it first, this is relatively simple, even people who do not have a basic knowledge of network programming can get started in a short period of time. The written web program can be called on the network, and different permissions can be set for different users. In this way, you can achieve the function you want, but this is only the basic, and you should learn more deeply to achieve more complete functions. >>>More
The prospect of learning UI is good, and there are many training institutions, so the local people may choose to visit and understand the real teachers and educational strength of the school before making a choice. Share the general development of the UI, I hope it will be useful to you. >>>More
The database is generally composed of many tables, for example, the school builds a database, which can build a student table (including the student's name, age, student number, class, date of birth), a teacher table (including the teacher's name, age, teaching class, teaching category), a report sheet (including the student's student number, and the grades of each subject), etc. These are the ways in which the files are stored in the database, and try to make sure that the items in a table are closely related and have the same attributes, if this condition cannot be met, a table must be built (the redundancy of the built table has 4 levels). In order to meet the user's query needs, we also need to make a number of views, for example, you can make a view of his items have the name of the student, age, grades of each subject, and the teacher of each subject, etc., we can also export new items according to the existing items, for the purpose of simplicity, for example, the view can add an average grade, we add different permissions and roles to each view, and provide it to different people to query to protect the security of the database. >>>More
select ,from emp e left jion dept don ;
Left Company. The left link is, the left side prevails, and the right side is useless to make up for it. >>>More