init commit
This commit is contained in:
20
internal/handlers/system.go
Normal file
20
internal/handlers/system.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
)
|
||||
|
||||
func HandleAsyncBuddyListRequest(conn net.Conn, requestData []byte) ([]byte, int) {
|
||||
fmt.Println("[TCP] Handling AsyncBuddyListRequest")
|
||||
// Return AsyncBuddyListContentRequest (516)
|
||||
// Field 2: Buddies (AsyncBuddyList)
|
||||
return []byte{0x12, 0x00}, 516
|
||||
}
|
||||
|
||||
func HandleAsyncIgnoreListRequest(conn net.Conn, requestData []byte) ([]byte, int) {
|
||||
fmt.Println("[TCP] Handling AsyncIgnoreListRequest")
|
||||
// Return AsyncIgnoreListContentRequest (516)
|
||||
// Field 2: Ignores (AsyncBuddyList)
|
||||
return []byte{0x12, 0x00}, 561
|
||||
}
|
||||
Reference in New Issue
Block a user